Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 18 - Adding Upload Completion Handler for Handling Custom/Error… #19

Conversation

matt-certain-ct
Copy link
Contributor

@matt-certain-ct matt-certain-ct commented Sep 20, 2024

Introduction

There is no code in the library to handle the response received after uploading a file. The response is simply discarded. This might acceptable for some uploads, but if you're expecting a custom response or error that you need to react to after an upload attempt then you need to capture the response and provide it to the app using this library.

Purpose

The purpose of this PR is to add a completion handler to be used with the submitBackgroundUpload API. This will allow the library to use a the URLSessionDataDelegate to receive the response and pass it to the provided completion handler from the app using the library.

Scope

The FileUploadProgress component has been updated to also use the URLSessionDataDelegate so that it can receive the final response after uploading a file. This response will then be provided to the completion handler associated with the background task identifier.

Issue Link

#18 : Background Upload Completion Handler Missing for Response

@RamChandraReddyK RamChandraReddyK merged commit 840a537 into codeandtheory:main Sep 24, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants